namespace CSharpPro;

//0915作业
public class Phone
{
    public string Brand { get; set; }
    public int Weight { get; set; }
    public int Camera { get; set; }
    public int Price { get; set; }

    public Phone(string brand, int weight, int camera, int price)
    {
        Brand = brand;
        Weight = weight;
        Camera = camera;
        Price = price;
    }

    public void DisplayInFo()
    {
        System.Console.WriteLine("Brand: " + Brand);
        System.Console.WriteLine("Weight: " + Weight+"g");
        System.Console.WriteLine("Camera: " + Camera+"px");
        System.Console.WriteLine("Price: " + Price);
    }
}